import request from '@/utils/request'

// 查询存货信息列表
export function listInventoryInfo(query) {
  return request({
    url: '/InventoryInfo/InventoryInfo/list',
    method: 'get',
    params: query
  })
}

// 查询存货信息详细
export function getInventoryInfo(id) {
  return request({
    url: '/InventoryInfo/InventoryInfo/' + id,
    method: 'get'
  })
}

// 新增存货信息
export function addInventoryInfo(data) {
  return request({
    url: '/InventoryInfo/InventoryInfo',
    method: 'post',
    data: data
  })
}

// 修改存货信息
export function updateInventoryInfo(data) {
  return request({
    url: '/InventoryInfo/InventoryInfo',
    method: 'put',
    data: data
  })
}

// 删除存货信息
export function delInventoryInfo(id) {
  return request({
    url: '/InventoryInfo/InventoryInfo/' + id,
    method: 'delete'
  })
}
